<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title></title>
    <script src="./vue.js"></script>
</head>

<body>
    <div id="app">
        <my :msg="parms"></my>
		<my2></my2>
    </div>
</body>
<script type="text/javascript">
    Vue.component("my", {
		props:["msg"],
        template: "<h2>我是全局组件{{msg}}</h2>"
    })
    let vm = new Vue({
        el: '#app',
        data: {
			msg:dad
		},
		components:{
			my2:{
				template:"<h2>我是局部组件</h2>"
			}
		},
        created() {
            console.log('created');
        }

    });
</script>

</html>